<div class="content">
	<ul class="breadcrumb">
		<li>
			<i class="fa fa-home"></i>
			<li>业务维护</li>
		</li>
		<li>
			<a href="javascript:void(0)" ui-sref="/.orderList">订单管理</a>
		</li>
		<li>订单新增</li>
	</ul>
	<div class="box">
		<ng-form class="formgroup" name="serForm">
			<div class="formrow">
				<label class="labtext-left"><sup class="required-flag">*</sup>客户名称</label>
				<input type="text"  ng-model="data.customerName" maxlength="20" placeholder="请选择客户" ng-click="choseCustomer()" required="required" readonly="readonly"/>				
			</div>
			<div class="formrow">
				<label class="labtext-left"><sup class="required-flag">*</sup>服务名称</label>
				<select ng-model="data.serviceId" required="required" ng-change="getServiceId(data.serviceId)">	
					<option value="">请选择</option>
					<option ng-repeat="serviceItem in serviceList" value="{{serviceItem.serviceId}}">{{serviceItem.serviceName}}</option>
				</select>
				<label class="labtext-left" style="width: 79px;">单价</label>
				<input type="text" style="width: 90px;" ng-model="priceUnit"  readonly="readonly"/>
			</div>
			<div class="formrow">
				<label class="labtext-left"><sup class="required-flag">*</sup>病区/病床</label> 
				<select ng-model="data.inpatientAreaId" required="required" style="width:144px">	
					<option value="">请选择</option>
					<option ng-repeat="lesionItem in lesionList" value="{{lesionItem.id}}">{{lesionItem.inpatientArea}}</option>
				</select>
					/
				<input type="text" style="width:144px" ng-model="data.inpatientWard" maxlength="20" placeholder="请输入病床" required="required"/>
			</div>
			<div class="formrow">
				<label class="labtext-left"><sup class="required-flag">*</sup>开始日期</label> <input type="text" id="startRegDate" style="width:110px" class="startdate" onchange="" required="required" onfocus="MyDatePicker({maxDate:'#F{$dp.$D(\'endRegDate\')}'})" ng-model="handle.startDate" />
				<label class="labtext-left" style="width: 80px;"><sup class="required-flag">*</sup>开始时间</label>
				<select ng-model="handle.startTime" required="required">	
					<option value="08:00:00">08:00</option>
					<option value="20:00:00">20:00</option>
				</select>
			</div>
			<div class="formrow">				
				<label class="labtext-left"><sup class="required-flag">*</sup>结束日期</label> <input type="text" id="endRegDate" style="width:110px" class="startdate" onchange="" required="required" onfocus="MyDatePicker({minDate:'#F{$dp.$D(\'startRegDate\')}'})" ng-model="handle.endDate" />
				<label class="labtext-left" style="width: 80px;"><sup class="required-flag">*</sup>结束时间</label>
				<select ng-model="handle.endTime" required="required">	
					<option value="08:00:00">08:00</option>
					<option value="20:00:00">20:00</option>
				</select>
			</div>
			<div class="formrow">				
				<label class="labtext-left">备注信息</label> 
				<input type="text"  ng-model="data.orderRemark" placeholder="请输入备注信息"/>				
			</div>
			<div class="fllab">
				<input type="submit" class="submit" value="保存" ng-click="save()" ng-disabled="serForm.$invalid" />
			</div>
		</ng-form>
	</div>
</div>
<!--弹出层-->
<script type="text/ng-template" id="customerChoice.html"> 
<div class="content" style="margin:0;">
	<ul class="breadcrumb">
		<li>
			<i class="fa fa-home"></i>
			<li>业务维护</li>
		</li>
		<li>订单管理</li>
		<li>订单新增</li>
		<li>客户查询</li>
		<i class="fa fa-times" aria-hidden="true" ng-click="close()" style="float: right;font-size: 36px;color: #8aafe4;margin-right: -15px;margin-top: -5px;"></i>
	</ul>
	<div class="box">
		<div class="filterForm">
			<ul class="clearfix">
				<li>用户名：<input type="text" placeholder="请输入用户名" ng-model="data.realName"></li>
				<li>身份证：<input type="text" placeholder="请输入身份证" ng-model="data.idNo"></li>
				<li>电话：<input type="text" placeholder="请输入电话" ng-model="data.phone"></li>
				<li><button type="button" class="searchbtn" ng-click="query()"><i class="fa fa-search"></i>&nbsp查询</button></li>
			</ul>
		</div>
		<div class="signList">
			
			<table class="tablelist" style="min-width: auto;">
				<thead>
					<tr>
						<th class="cell-number">用户名</th>
						<th class="cell-number">性别</th>
						<th class="cell-number">身份证</th>
						<th class="cell-number">电话</th>
						<th class="cell-number">地址</th>						
						<th class="cell-number">操作</th>	
					</tr>
				</thead>
				<tbody>
					<tr ng-repeat="item in custList">
						<td class="cell-number">{{item.realName}}</td>
						<td class="cell-number">{{item.sex | SexFilter}}</td>
						<td class="cell-number">{{item.idNo}}</td>
						<td class="cell-number">{{item.phone}}</td>
						<td class="cell-number">{{item.address}}</td>						
						<td class="cell-number">
							<button type="button" class="btn btn-success" ng-click="choice(item)">
								<i class="fa fa-check-square"></i>&nbsp选择
							</button>							
						</td>
					</tr>					
				</tbody>
			</table>
		</div>
	</div>	
	<div class="defaultPage" ng-show="custList== null">
		<img src="img/nodata.png" /> <span>暂无数据</span>
	</div>
	<uib-pagination total-items="pagerConf.totalItems" ng-model="pagerConf.currentPage" max-size="pagerConf.maxSize" first-text="第一页" previous-text="上一页" next-text="下一页" last-text="最后页" boundary-links="true"></uib-pagination>
</div>
</script>